define [
	'jquery'
	'lib/jquery.jnotify.min'
], ($) ->
	$.fn.mb_notify = ->
		$.subscribe 'mb.msg', (e, msg: msg, delay: delay, sticky: sticky, type: type) ->
			$.jnotify msg, 2000 if not delay? and not sticky? and not type?
			$.jnotify msg, delay if delay? and not sticky? and not type?
			$.jnotify msg, type if not delay? and not sticky? and type?
			$.jnotify msg, sticky if not delay? and sticky? and not type?
			$.jnotify msg, type, sticky if not delay? and sticky? and type?
			return
		return @
	return
